<div class="centercontent tables">
<div class="pageheader notab">
<h1 class="pagetitle">Manajemen Anggota</h1>

<span class="pagedesc">Informasi Daftar Anggota</span> 
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper"><br />
<div class="contenttitle2">
<h3><?php if($this->session->userdata('id_organisasi') == '1'){ ?>Daftar Anggota ITS TV <?php } else { ?> Daftar Anggota ITS Online<?php } ?></h3>
</div>
<!--contenttitle-->

<?php if($anggota->num_rows() > 0){?>
<table class="stdtable" id="dyntable" border="0" cellpadding="0" cellspacing="0">
<colgroup><col class="con0" /><col class="con1" /><col class="con0" /><col class="con1" /><col class="con0" /></colgroup> 
<thead> 
<tr>
	<th class="head1">Foto</th>
	<th class="head0">NRP</th>
	<th class="head1">Nama Anggota</th>
	<th class="head0">No. Telepon</th>
	<th class="head1">Jurusan</th>
	<th class="head0">Status Anggota</th>
	<th class="head1">Organisasi</th>
	<th class="head0">Jabatan</th>
	<th class="head1">Pilihan</th>
		
</tr>
</thead> 
<tfoot> 
	<tr>
	<th class="head1">Foto</th>
	<th class="head0">NRP</th>
	<th class="head1">Nama Anggota</th>
	<th class="head0">No. Telepon</th>
	<th class="head1">Jurusan</th>
	<th class="head0">Status Anggota</th>
	<th class="head1">Organisasi</th>
	<th class="head0">Jabatan</th>
	<th class="head1">Pilihan</th>
	</tr>
</tfoot> 
<tbody>
	<?php 
						foreach($anggota->result() as $row){			
			 		?>
	<tr class="gradeA">
	<td><?php echo '<a href= \'' . base_url().$row->foto_anggota . '\' target="_blank"><img border=\'0\' src=\'' . base_url().$row->foto_anggota . '\' height=\'50\'></a> '; ?></td>
	<td><?php echo $row->id_anggota; ?></td>
	<td><?php echo $row->nama_anggota; ?></td>
	<td><?php echo $row->no_telepon; ?></td>
	<td><?php echo $row->jurusan ?></td>
	<td><?php if($row->status_anggota==1){ 
						echo "aktif";
						} else{
									if($row->status_anggota==2){
														echo "tidak aktif";
													} else { 
																if($row->status_anggota==3){
																											echo "cuti";
																											}else{ echo "tidak terdaftar";}
															}
								} ?>
	</td>
	<td><?php if($row->id_organisasi==1){ 
						echo "ITS Online";
						} else{
									if($row->id_organisasi==2){
														echo "ITS TV";
													} else {echo "tidak terdaftar";}
								} ?>
	</td>
	<td><?php if($row->id_jabatan==1){ 
						echo "pimred";
						} else{
									if($row->id_jabatan==2){
														echo "koordinator liputan";
													} else { 
														if($row->id_jabatan==3){
															echo "anggota";
														} else { 
															if($row->id_jabatan==4){
																echo "redaktur";
															}
														}
													}
								} ?>
	</td>
	<td align="center">
	<a href="<?php echo base_url().'index.php/anggota/detail_anggota/'.$row->id_anggota; ?>" title='Detail' class="btn btn4 btn_yellow btn_search radius50" alt="Detail"></a>

	</td>

	</tr>
	 <?php
					  } 
					  ?> 
					  
	</tbody>
</table><?php } else { echo 
						 '<div class="notibar msginfo">
							<p>Data </p>
						  </div>';
					}
			  		?> 
<!--contenttitle--></div>
<!--contentwrapper--> </div>
<!-- centercontent -->